package com.hy.admin.service;

import com.hy.admin.entity.AnswerEntity;
import com.hy.admin.entity.QuestionEntity;
import com.hy.admin.helper.response.AnswerResponse;
import com.hy.admin.helper.response.QuestionResponse;
import com.hy.core.response.ServicesResult;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * Created by yangqq on 18/4/5.
 */
public interface AnswerService {
    /**
     * 回答
     * @param answerEntity
     * @param files
     * @return
     */
    ServicesResult<Boolean> add(AnswerEntity answerEntity, Long teacherId, MultipartFile[] files) throws Exception;

    /**
     * 查看答案
     * @param questionId
     * @return
     */
    ServicesResult<AnswerResponse> show(Long questionId, Long memberId);
}
